import request from '../utils/request'
// 获取用户已选频道
export const getUserChannelsListAPI = () => {
  return request({
    url: '/v1_0/user/channels'
  })
}
// 获取所有频道接口
export const allChannelsListAPI = () => {
  return request({
    url: '/v1_0/channels'
  })
}
// 更新用户已选频道接口
export const updateChannelsAPI = ({ channels }) => {
  return request({
    url: '/v1_0/user/channels',
    method: 'PUT',
    data: {
      channels: channels
    }
  })
}
